import { createApp } from "vue";
// import { createPinia } from 'pinia'
// 引入pinia配置
import { setupStore } from "@/stores";
// vue i18n
import I18n from "@/language/index";

// import ElementPlus from 'element-plus'
import "element-plus/dist/index.css";
import "@/assets/main.scss";

import App from "./App.vue";
import router from "./router";
import $api from "@/api/request/index";

const app = createApp(App);

// app.use(createPinia())
setupStore(app);
app.use(router).use(I18n);
// app.use(ElementPlus)
app.provide("$api", $api);

app.mount("#app");
